// 连接数据库mysql
const mysql = require("mysql2");
const db = mysql.createPool({
  host: process.env.DB_HOST || "localhost",
  user: process.env.DB_USER || "root",
  password: process.env.DB_PASSWORD || "12345678",
  database: process.env.DB_NAME || "dsj_study",
});

module.exports = db;
